package limpo;

import java.util.ArrayList;
import java.util.List;

import processing.core.PApplet;
import processing.core.PVector;

public class CellColony {

	private List<CellUnit> units;
	private PApplet main;

	public CellColony(PApplet main){
		this.main = main;
		this.units = new ArrayList<CellUnit>();
	}

	public void draw(){
		for (CellUnit unit : units) {
			unit.run();
		}
	}

	public void addUnit(List<PVector> points){
		this.units.add(new CellUnit(this.main, points));
	}

	public int size(){
		return this.units.size();
	}


}
